package com.leyou.cart.entity;

import com.leyou.item.entity.Sku;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author RudolfHugh
 * @since 2020/5/26 15:41
 */

@Data
@Table(name = "tb_collections")
public class MyCollections {
  @Id
  @KeySql(useGeneratedKeys = true)
  private Long id;

  private Long userId; // 用户id
  private Long skuId; // 商品id
  private String title; // 标题
  private String images; // 图片
  private Long price; // 价格
  private String ownSpec; // 商品规格参数
  private Sku newSku;   //最新Sku信息

}
